<!DOCTYPE html>
<html lang="ru">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="{{ url_for('static', path='./styles.css') }}">
    <title>История Погоды</title>
</head>
<body>
    <header>
        <div class="header-left">
            <a href="/" class="logo">История Погоды</a>
        </div>
        <div class="header-center">
            <a href="/" class="nav-item {{ 'active' if request.path == '/' else '' }}">Главная</a>
            <div>|</div>
            <a href="/accounts" class="nav-item {{ 'active' if request.path == '/accounts' else '' }}">Аккаунты</a>
            <div>|</div>
            <a href="/regions" class="nav-item {{ 'active' if request.path == '/regions' else '' }}">Регионы</a>
            <div>|</div>
            <a href="/region-types" class="nav-item {{ 'active' if request.path == '/region-types' else '' }}">Типы регионов</a>
            <div>|</div>
            <a href="/map" class="nav-item {{ 'active' if request.path == '/map' else '' }}">Карта</a>
        </div>
        <div class="header-right">
            {% if user %}
                <span class="username">{{ user }}</span>
                <a href="/logout" class="auth-link">(Выйти)</a>
            {% else %}
                <a href="/login" class="auth-link">Вход</a>
                <a href="/register" class="auth-link">Регистрация</a>
            {% endif %}
        </div>
    </header>
</body>
</html>